package com.etone.simplesocket;

import java.io.BufferedOutputStream;
import java.io.BufferedWriter;
import java.io.DataOutputStream;
import java.io.IOException;
import java.io.OutputStream;
import java.net.Socket;
import java.net.UnknownHostException;

public class Client {

	/**
	 * @param args
	 */
	

	private static Socket s;
	
	public static void connect(String ip, int port){
		
		try {
			s = new Socket(ip, port);
			OutputStream os = s.getOutputStream();
			
			DataOutputStream dos = new DataOutputStream(os);
			
			os.flush();
		} catch (Exception e) {
			// TODO Auto-generated catch block
			e.printStackTrace();
		}
	}
	
	public static void main(String[] args) {
		Client.connect(Server.IP, Server.PORT);
		

	}

}
